<template>
  <div class="hello">
  <div id="header">
    首页
  </div>
    <h1>催化上{{ msg }}</h1>

    <input  type="text" v-model="msg" />
    <br>
    <router-link to="nihao">nihao</router-link> 
    <router-link to="chat">聊天室</router-link> 

  <div id="footer">
  底部导航
  </div>  
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: '酸菜'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

#header{

background-color:red;
height:56px;
width:100%;


}

#footer
{
  background-color:red;
  height:56px;
  width:100%;
  bottom:0px;
}

h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
